package com.joinval.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joinval.common.base.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典表
 *
 * @author xu
 * @email -
 * @date 2020-08-24 19:17:15
 */
@Data
@TableName("sys_dict")
@EqualsAndHashCode(callSuper = false)
public class SysDict extends BaseEntity{

	/**
	 * 字典表主键
	 */
	@TableId
	private Long sysDictId;

	/**
	 * 字典名称
	 */
	@Length(max = 200,message = "字典名称最长为200字符")
	@NotBlank(message = "字典名称不能为空")
	private String dictName;

	/**
	 * 字典编码
	 */
	@Length(max = 60,message = "字典编码最长为200字符")
	@NotBlank(message = "字典编码不能为空")
	private String dictCode;

	/**
	 * 描述
	 */
	@Length(max = 60,message = "描述最长为200字符")
	private String description;


}
